/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package stuff;

import java.util.Comparator;
import model.Item;

/**
 *
 * @author JArik
 */



public class ItemComparator implements Comparator<Item>{

    public int compare(Item arg0, Item arg1)
    {
        if (arg0.getDisDate().after(arg1.getDisDate()))
            return -1;
        else
        if (arg0.getDisDate().before(arg1.getDisDate()))
            return 1;
        else
        return 0;
    }
}